<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>MySpace Flood API Demo</title>
<link rel="stylesheet" href="static/base.css" type='' "text/css" />
</head>
<body>
   <div id="spacer">  </div>

		<div id="header">
			 Administration Console
		</div>

   <div id="spacer">  </div>
      <div id="container">
		<form action="/admin?op=delete_activities" method="post">
			<h3>Total Number Of Activities In DataStore: {{ activity_count }}  </h3>
			<div><input type="submit" value="Delete All Activities"></div>			
		</form>
		
		<div id="spacer">  </div>
		
		<form action="/admin?op=delete_subscriptions" method="post">
			<h3>Subscriptions registered for this app (as reported by /subscription/@all)</h3>
			<div>
			  <table class="mytable">
			  <tr>
				<th>Select</th>
				<th>Subscription ID</th>
				<th>Subscription Status</th>
				<th>Subscription Endpoint</th>
				<th>Subscription Type</th>
			  </tr>
				{% for subscription in ms_subscriptions.Subscriptions %}
				   <tr> 
				       <td> <input type="checkbox" name="subscription_id" value="{{subscription.Subscription.id}}" /> </td>
				   	   <td> <a href="/admin?op=get_subscription&id={{subscription.Subscription.id}}" target="_blank"> {{ subscription.Subscription.id }} </a> </td>
				       <td> {{ subscription.Subscription.Status }} </td>				       
				       <td> {{ subscription.Subscription.Endpoint }} </td>				       
				       <td> {{ subscription.Subscription.Type }} </td>				       
				   </tr>
				{% endfor %}
			  </table>
			</div>
		    <div id="spacer">  </div>
			<div><input type="submit" value="Delete Subscriptions"></div>	
		</form>
      </div>
</body>
</html>